local Enemylistindex = 1
local Friendlistindex = 1
 
function Transfer(ply,command,args) 
	local plyuni = ply:UniqueID()
	if (args[1] == "Stop") then 
		ply.recieveFriendlist = false
		ply.recieveEnemylist = false
		return
	elseif (ply.recieveEnemylist) then
		servertable["ply"][plyuni]["friendenemy"]["enemys"][Enemylistindex] = Entity( args[1] ):UniqueID( ) 
		Enemylistindex = Enemylistindex +1
		return
	elseif (ply.recieveFriendlist) then
		servertable["ply"][plyuni]["friendenemy"]["friends"][Friendlistindex] = Entity( args[1] ):UniqueID( )
		Friendlistindex = Friendlistindex + 1
		return
	elseif (args[1] == "Friendlist") then
		ply.recieveFriendlist = true
		servertable["ply"][plyuni]["friendenemy"]["friends"] = {}
		ply.Friendlistindex = 1
		return
	elseif (args[1] == "Enemylist") then
		ply.recieveEnemylist = true
		servertable["ply"][plyuni]["friendenemy"]["enemys"] = {}
		ply.Enemylistindex = 1
		return
	end
end 
concommand.Add("FriendEnemy",Transfer)  